package top.haijunit.work.modules.repo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.haijunit.work.core.annotate.Desensitize;
import top.haijunit.work.core.annotate.DesensitizeType;
import top.haijunit.work.modules.core.BaseEntity;
import top.haijunit.work.modules.core.enums.StatusEnum;

/**
 * 用户表
 */
@Data
@TableName(value = "repo_users")
public class UserEntity extends BaseEntity {

    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 密码
     */
    @Desensitize(type = DesensitizeType.PASSWORD)
    private String userPassword;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号码
     */
    private String phone;

    /**
     * 状态
     */
    private StatusEnum statusCode;
}
